home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
getkey16.zip
/
TEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-20
|
743b
|
30 lines
@echo off
REM This test file is an example of how you may use GETKEY
REM Notice it will keep looping until you either hit "Q" or "q"
REM Notice how the menu items control what keys are valid
REM making the /c option unnecessary.
:Start
getkey /d:3,15,14 /m20,7"~2. ~Editor" /m20,9"~3. ~Format" /m20,5"~1. ~AntiVirus" /m20,11"~4. ~Quit" "Choose an option "
REM Take into consideration we have _two_ keys to choose from in each menu
if errorlevel 7 if not errorlevel 9 goto End
if errorlevel 5 if not errorlevel 7 goto Fmt
if errorlevel 3 if not errorlevel 5 goto Edit
if errorlevel 1 if not errorlevel 3 goto CPAV
:Edit
edit
goto Start
:CPAV
D:\PCTOOLS\CPAV
goto Start
:Fmt
call fmt.bat
goto Start
:End
cls